from flask import Flask, render_template, send_from_directory
from waitress import serve
import os

# 创建Flask应用实例
app = Flask(__name__, template_folder='templates')

@app.route('/')
def index():
    """首页路由，渲染模型列表页面"""
    return render_template('model_list.html')

if __name__ == '__main__':
    print('Start server at http://127.0.0.1:8000')
    # 使用waitress作为生产服务器运行
    serve(app, host='0.0.0.0', port=8000)
